#ifndef __HEAD__
#define __HEAD__

typedef enum msgCode_s{
    CLOSE_CONNECT,
    REGISTER_APPLY, REGISTER_OK, REGISTER_FAID,
    LOGIN_APPLY, LOGIN_OK, LOGIN_FAID,
    LS_APPLY, LS_OK, LS_FAID,
    CD_APPLY, CD_OK, CD_FAID,
    PWD_APPLY, PWD_OK, PWD_FAID,
    PUTS_APPLY, PUTS_OK, PUTS_FAID,
    GETS_APPLY, GETS_OK, GETS_FAID,
    RM_APPLY, RM_OK, RM_FAID,
    MKDIR_APPLY, MKDIR_OK, MKDIR_FAID,
    RMDIR_APPLY, RMDIR_OK, RMDIR_FAID,
}msgCode_t;

typedef struct logMsg_s
{
    char usrName[20];
    char usrPasswd[30];
    //当前路径
    char clientPath[100];
    char token[50];
}logMsg_t;

typedef struct train_s{
    int length;
    char data[1000];
    int code;//状态码
}train_t;

#endif